package org.smart4j.bootstrap.service;


import org.smart4j.bootstrap.entity.User;
import org.smart4j.plugin.security.fault.LoginException;

import java.util.List;
import java.util.Map;


public interface UserService {

    void login(String username, String password);

    List<User> findUserList();

    List<User> findUserListByUsername(String username);
    User findUserIdByUsername(String username);
    User findUser(long id);

    boolean saveUser(Map<String, Object> fieldMap);
    boolean updateUser(long id, Map<String, Object> fieldMap);
    boolean deleteUser(long id);
    boolean saveUserRole(Map<String, Object> fieldMap);
}
